package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangyy
 * @since 2020-09-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_fba_dimens")
public class FbaDimensDo extends Model<FbaDimensDo> {

    private static final long serialVersionUID = 1L;

    @TableField("track_id")
    private Long trackId;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("size")
    private Double size;

    @TableField("weight")
    private Integer weight;

    @TableField("storage_id")
    private Long storageId;


    /**
     * 类型  1 按三边计算 2按体积计算
     */
    @TableField("type")
    private Integer type;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
